package com.weishi.project.training.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weishi.project.api.vo.HeartRateCountVo;
import com.weishi.project.training.domain.HeartRateCount;
import com.weishi.project.training.vo.HeartRateCountAddVo;

import java.util.List;

/**
 * 心率计次数据Service接口
 */
public interface IHeartRateCountService extends IService<HeartRateCount> {

    /**
     * 查询心率计次数据列表
     */
    List<HeartRateCount> selectHeartRateCountList(HeartRateCount heartRateCount);

    /**
     * 查询每个航道计次信息
     * @param channelId
     * @return
     */
    List<HeartRateCount> qryCountByChannel(Integer channelId);

    /**
     * 更新同一航道的所有消息
     * @param heart
     */
    void updateByChannelId(HeartRateCount heart);

    List<HeartRateCount> selectHeartRateCountList(Integer groupId, Integer userId);

    List<HeartRateCountVo> qryCountBySportsman(int channelId, int sportsmanId);

    /**
     * 手动新增水上分段数据
     */
    void addOrSaveHeartRateCount(List<HeartRateCountAddVo> list);

    /**
     * 查询水上分段成绩详情
     * @param channel
     * @return
     */
    List<HeartRateCountAddVo> qryHeartRateCount(Integer channel);


    /**
     * 封装查询水上桨频
     */
    List<HeartRateCount> listZHKID(Integer channelId);


    /**
     * 新增分段同时新增运动员分段记录
     * @param heartRateCount
     */
    void saveAndAddRecord(HeartRateCount heartRateCount);
}